package com.sly.demo.mapstruct.mapper;

import com.sly.demo.mapstruct.model.po.User;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * 用户mapper（这里只做DEMO示范，因此没有去真正按照查询数据库去写）
 * @author SLY
 * @date 2022/8/7
 */
@Component
public class UserMapper {
    public User findUser() {
        User user = new User();
        user.setId(1);
        user.setUsername("大毛");
        user.setPassword("07941C4C95EA41CE9FFE37A5F0B9950B");
        user.setCreateTime(new Date());
        user.setStatus(1);
        return user;
    }
}
